package com.iwhalecloud.citybrain.flow.platform.manager.application.common.event;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.User;
import org.flowable.engine.repository.ProcessDefinition;
import org.flowable.engine.runtime.ProcessInstance;

/**
 * @author lilh
 * @date 2019-05-05 14:17
 */
public class ProcessInstanceStartEvent {

    private User user;

    private ProcessDefinition processDefinition;

    private ProcessInstance processInstance;

    private boolean isFromSdkCall;


    public ProcessDefinition getProcessDefinition() {
        return processDefinition;
    }

    public ProcessInstanceStartEvent setProcessDefinition(ProcessDefinition processDefinition) {
        this.processDefinition = processDefinition;
        return this;
    }

    public ProcessInstance getProcessInstance() {
        return processInstance;
    }

    public ProcessInstanceStartEvent setProcessInstance(ProcessInstance processInstance) {
        this.processInstance = processInstance;
        return this;
    }

    public User getUser() {
        return user;
    }

    public ProcessInstanceStartEvent setUser(User user) {
        this.user = user;
        return this;
    }

    public boolean getIsFromSdkCall() {
        return isFromSdkCall;
    }

    public ProcessInstanceStartEvent setIsFromSdkCall(boolean fromSdkCall) {
        isFromSdkCall = fromSdkCall;
        return this;
    }
}
